<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function $$ (id){
				return document.getElementById(id);
			}
			window.onload = function(){
				var cnv = $$("canvas");
				var cxt = cnv.getContext("2d");
				cxt.moveTo(50,50);
				cxt.lineTo(100,50);
				cxt.lineTo(50,100);
				cxt.lineTo(100,100);
				cxt.lineWidth=12;
				cxt.lineJoin='miter';
				cxt.stroke();
				
				cxt.beginPath()
				cxt.lineWidth=12;
				cxt.moveTo(150,50);
				cxt.lineTo(200,50);
				cxt.lineTo(150,100);
				cxt.lineTo(200,100);
				cxt.lineJoin='round';
				cxt.stroke();
				
				cxt.moveTo(250,50);
				cxt.lineTo(300,50);
				cxt.lineTo(250,100);
				cxt.lineTo(300,100);
				cxt.lineWidth=12;
				cxt.lineJoin='bevel';
				cxt.stroke();
			}
		</script>
	</head>
	<body>
		<canvas id="canvas" width="400" height="300"style="border: 1px dashed gray;"></canvas>
	</body>
</html>
